import { menu2Routes } from "@/utils/menu2Routes";

// - 获取动态路由
const dynamicRoutes = menu2Routes(["views", "components"]);

// - 路由配置表
const routes = [
  // 重定向根路径到 home
  {
    path: "/",
    redirect: "/home",
  },

  ...dynamicRoutes,
];

console.log(routes);

export default routes;
